print(sum([int(x) for x in str(2**1000)]))

y=2**1000
for x in str(y):
    sum1 = sum([int(x)])
    print(sum1)